﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Controles_MenuLateralAdministrador : System.Web.UI.UserControl {

    PetShopService.UsuarioServicos oUsuarioServicos = new PetShopService.UsuarioServicos();

    protected void Page_Load(object sender, EventArgs e) {

        if (!oUsuarioServicos.isUsuarioAdministrador())
            Response.Redirect("~/default.aspx");
    }

    protected void btnSair_Click(object sender, EventArgs e) {
        oUsuarioServicos.usuarioLogado = null;
        Response.Redirect("~/default.aspx");
    }
}